<script setup>
	import {
		onMounted,
		ref
	} from 'vue';

	const child = ref(null);
	
	const update = function() {
		child.value.updateCount()
	}

	onMounted(() => {
		console.log(child.value);
	})
</script>
<template>
	<view class="">
		<demo-child ref="child"></demo-child>
		<view>-------------</view>
		<button @click="update"> 点击修改子元素的子值</button>
		<navigator url="/pages/demo6/demo6?name=王五&age=20">跳转到demo6</navigator>
	</view>
</template>
<style lang="scss" scoped>

</style>